import {
  IUpdateProcessAction,
  UPDATE_PROCESS,
} from "../actions/process.action";

const initialState: string = "0";

export default function processReducer(
  state = initialState,
  action: IUpdateProcessAction
) {
  switch (action.type) {
    case UPDATE_PROCESS:
      return action.payload;
    default:
      return state;
  }
}
